import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import MindmapTool from '../views/tools/MindmapTool.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/tools',
    name: 'Tools',
    redirect: '/tools/mindmap'
  },
  {
    path: '/tools/mindmap',
    name: 'MindmapTool',
    component: MindmapTool
  },
  {
    path: '/tools/flowchart',
    name: 'FlowchartTool',
    component: () => import('../views/tools/FlowchartTool.vue')
  },
  {
    path: '/tools/presentation',
    name: 'PresentationTool',
    component: () => import('../views/tools/PresentationTool.vue')
  },
  {
    path: '/tools/html',
    name: 'HtmlTool',
    component: () => import('../views/tools/HtmlTool.vue')
  },
  {
    path: '/tools/diagram',
    name: 'DiagramTool',
    component: () => import('../views/tools/DiagramTool.vue')
  },
  {
    path: '/tools/pdf',
    name: 'PdfTool',
    component: () => import('../views/tools/PdfTool.vue')
  },
  {
    path: '/help',
    name: 'Help',
    component: () => import('../views/Help.vue')
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 